Skip to content

Conversation

@dontub
Copy link
Collaborator

@dontub dontub commented Jan 30, 2025

If #limit_validation_errors is not FALSE Drupal expects an array and tries to iterate over it. Using TRUE results in a PHP warning. https://git.drupalcode.org/project/drupal/-/blob/11.1.1/core/lib/Drupal/Core/Form/FormValidator.php?ref_type=tags#L150

…`TRUE`

If `#limit_validation_errors` is not `FALSE` Drupal expects an array and
tries to iterate over it. Using `TRUE` results in a PHP warning.
@dontub dontub merged commit 61e06bd into main Jan 30, 2025
14 checks passed
@dontub dontub deleted the fix-php-warning-limit_validation_errors branch January 30, 2025 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants